namespace RBAC.Read.Api.Application.Command.BomCommand
{
    using MediatR;
    using RBAC.Read.Api.Application.Dto;

    /// <summary>
    /// 产品导出命令（沿用分页条件：PageIndex、PageSize、OrderBy）
    /// </summary>
    public class GetProductExportCommand : IRequest<FileExportResult>
    {
        /// <summary>
        /// 页码，默认 1
        /// </summary>
        public int PageIndex { get; set; } = 1;

        /// <summary>
        /// 每页条数，默认 10
        /// </summary>
        public int PageSize { get; set; } = 10;

        /// <summary>
        /// 排序，默认按 Id 倒序
        /// </summary>
        public string OrderBy { get; set; } = "Id DESC";
    }
}
